package com.hanson.service;

import com.alibaba.fastjson.JSONObject;
import com.hanson.Const;
import com.hanson.common.bean.*;
import com.hanson.common.exception.BusinessException;
import com.hanson.common.service.RedisService;
import com.hanson.common.util.BusinessUtil;
import com.hanson.common.util.ClientCustomSSL;
import com.hanson.common.util.WeChatUtils;
import com.hanson.entity.*;
import com.hanson.mapper.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.ModelMap;
import org.springframework.util.CollectionUtils;

import java.io.DataOutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.*;

@Service
@Slf4j
public class PayService {
    @Autowired
    private WeiXinConfig weiXinConfig;
    @Autowired
    private OrderService orderService;
    @Autowired
    private ApplyInfoService applyInfoService;
    @Autowired
    private WeiXinNotifyBeanMapper weiXinNotifyBeanMapper;
    @Autowired
    private UserBeanMapper userBeanMapper;
    @Autowired
    private GoodsBeanMapper goodsBeanMapper;
    @Autowired
    private SeckillGoodsBeanMapper seckillGoodsBeanMapper;
    @Autowired
    private GroupGoodsBeanMapper groupGoodsBeanMapper;
    @Autowired
    private RedisService redisService;
    @Autowired
    private ScoreSeqBeanMapper scoreSeqBeanMapper;
    @Value("${oss.local}")
    private String isLocal;

    public Map<String,Object> unifiedOrder(Map<String, Object> map, String orderSeq, ModelMap modelMap) {
        return null;
    }

    public void dealNotify(WechatRefundApiResult result) {
    }
}
